package com.iss.yunpan.dao;

import com.iss.yunpan.entity.FileContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface FileShareDao {
    List<FileContent> getAllShareFile(String fileName);
    void updateFile(FileContent con);

    void insertFile(FileContent cont);

    Integer cancel(@Param("fileAbsolute") String fileAbsolute);

    Integer edit(@Param("fileAbsolute") String fileAbsolute, @Param("timeRemaining")Integer timeRemaining, @Param("time")Date time);
}
